package com.siyao.redvip.ui.activity;

import com.siyao.redvip.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.LinearLayout;

public class PopDialogActivity  extends Activity implements OnClickListener{
	//定义四个按钮区域
	private LinearLayout llayout01;
//	private LinearLayout mAddFrd;
//	private LinearLayout mFind;
//	private LinearLayout mFeedBack;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.pop_dialog);
		initView();
	}

	/**
	 * 初始化组件
	 */
	private void initView(){
		//得到布局组件对象并设置监听事件
		llayout01 = (LinearLayout)findViewById(R.id.llayout01);
//		mAddFrd = (LinearLayout)findViewById(R.id.id_addfrd);
//		mFind = (LinearLayout)findViewById(R.id.id_find);
//		mFeedBack = (LinearLayout)findViewById(R.id.id_feedback);

		llayout01.setOnClickListener(this);
//		mAddFrd.setOnClickListener(this);
//		mFind.setOnClickListener(this);
//		mFeedBack.setOnClickListener(this);
	}
	
	@Override
	public boolean onTouchEvent(MotionEvent event){
		finish();
		return true;
	}
	
	@Override
	public void onClick(View v) {
		Intent intent ;
		int id=v.getId();
		switch (id) {
		case R.id.llayout01:
			intent = new Intent(this, ForgetPwdActivity.class);
			startActivity(intent);
			finish();
			break;

		default:
			break;
		}
	}
}
